/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.citi.dahg.cve.controller.service.impl;

import com.citi.dahg.cve.controller.model.Periodo;
import com.citi.dahg.cve.controller.service.BasicService;
import java.util.List;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.persistence.Query;

/**
 *
 * @author dh90940
 */
@Stateless
@LocalBean
public class PeriodoServiceImpl extends  BasicService<Periodo> {

    @Override
    protected Class<Periodo> getClazz() {
        return Periodo.class;
    }

    @Override
    protected String queryGetAll() {
        return "select p From Periodo p order by p.year desc";
    }
    
}
